Skip to content

Manually parse viewName parameter.#7574

Open
labkey-klum wants to merge 4 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_issue_936
Open

Manually parse viewName parameter.#7574
labkey-klum wants to merge 4 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_issue_936

Conversation

@labkey-klum
Copy link
Copy Markdown
Contributor

Rationale

https://github.com/LabKey/internal-issues/issues/936

Avoid automatic conversion to String[] when the view name contains commas.

@labkey-klum labkey-klum marked this pull request as ready for review April 27, 2026 17:38
if (value instanceof String[] strs)
_viewName = strs;
else if (value instanceof String str)
_viewName = new String[] { str };
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't think of a way that we'd get here without it being a string or string[] but do we need an else that throws an error / or logs an error? Maybe we have presedence from other bindParameters overrides.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can log an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants